#!/bin/bash

FOR_BASE=$1
BRANCH_IMAGE=mcp-weather-agent
if [ $FOR_BASE = "base" ]; then
  IMAGE_TAG=base
  DOCKERFILE=Dockerfile.base
else
  IMAGE_TAG=latest
  DOCKERFILE=Dockerfile
fi

echo "docker build -f $DOCKERFILE -t $BRANCH_IMAGE:$IMAGE_TAG ."
docker build -f $DOCKERFILE -t $BRANCH_IMAGE:$IMAGE_TAG .
echo "===> docker build done <==="
